import request from '@/utils/request'

//获取客户列表
export function getTenantList(data){
    return request({
        url:'/site/tenant/list',
        method:'post',
        data
    })
}
//获取客户信息
export function getTenantInfo(id){
    return request({
        url:'/site/tenant/info?id='+id,
        method:'get'
    })
}
//重置客户密码
export function resetPwd(data){
    return request({
        url:'/site/tenant/resetPwd',
        method:'post',
        data
    })
}
// 登录租户系统
export function tenantLogin(id) {
    return request({
      url: '/site/tenant/login?id=' + id,
      method: 'post'
    })
  }
  
//客户端自动登录
export function clientLogin(secretKey,token){
    return request({
        url:'/site/tenant/clientLogin?secretKey='+secretKey+'&token='+token,
        method:'post'
    })
}
//获取客户权限
export function getPermission(id){
    return request({
        url:'/site/tenant/permissions?id='+id,
        method:'get'
    })
}
